using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Zeus.Biz.DomainModel.NHib.Northwind {
    
    
    public class SysdiagramMap : ClassMap<Sysdiagram> {
        
        public SysdiagramMap() {
			Table("sysdiagrams");
			LazyLoad();
			Id(x => x.DiagramId).GeneratedBy.Identity().Column("diagram_id");
			Map(x => x.Name).Column("name").Not.Nullable().Length(128);
			Map(x => x.PrincipalId).Column("principal_id").Not.Nullable();
			Map(x => x.Version).Column("version");
			Map(x => x.Definition).Column("definition");
        }
    }
}
